package cn.tedu.baking_wu01.controller;

import cn.tedu.baking_wu01.mapper.BannerMapper;
import cn.tedu.baking_wu01.pojo.entity.Banner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping
public class BannerController {

    @Autowired
    BannerMapper bannerMapper;

    @GetMapping("/bannerArr")
    public List<Banner> BannerArr() {
        return bannerMapper.BannerArr();
    }
}
